var t = function (t) {
  return t && t.__esModule ? t : {
    default: t
  };
}(require("../../../../utils/toot.js"));

var app = getApp();

Page({
  data: {
    curHdIndex: 0,
    isfull: !1,
    qyshow: !0,
    nzshow: !0,
    pxshow: !0,
    provinceList: [],
    cityList: [],
    codeData: [],
    hospitalList: [],
    provinceName: "",
    regionName: "区域",
    sectionName: "科室",
    hospitalName: "医院名称",
    cityIndex: null,
    provinceIndex: null,
    sectionIndex: null,
    hospitalIndex: null,
    moreBoo: !0,
    loadingBoo: !0,
    currentResult: 1,
    id: 1,
    jobType: 1,
    doctors: [],
    noDataBoo: !1,
    url: "patient/sign/doctor/submit/",
    keyWord: "",
    doctors: [{
      doctor: {
        doctorId: 1,
        userIcon: '/assets/images/head.png',
        doctorName: '小花',
        title: '主治医师',
        activeFlag: 1,
        jobType: 1,
        nmHospital: '山西大医院',
        nmDepartment: '骨科',
        patientCount: 4,
        askNum: 5,
        bgGoodAt: 6
      }
    },
    {
      doctor: {
        doctorId: 1,
        userIcon: '/assets/images/head.png',
        doctorName: '小花',
        title: '主治医师',
        activeFlag: 0,
        jobType: 0,
        nmHospital: '山西大医院',
        nmDepartment: '骨科',
        patientCount: 4,
        askNum: 5,
        bgGoodAt: 6
      }
    }
    ]
  },
  tabFun: function (e) {
    var o = this;
    t.default.tabFun(e, o);
  },
  select: function (e) {
    var o = this;
    t.default.select(e, o);
  },
  selectPartsAll: function (e) {
    console.log(e);
    var o = this;
    t.default.selectPartsAll(e, o);
  },
  selectParts: function (e) {
    var o = this;
    console.log(e), t.default.selectParts(e, o);
  },
  selectCity: function (e) {
    var o = this;
    t.default.selectCity(e, o);
  },
  selectSectionAll: function (e) {
    var o = this;
    t.default.selectSectionAll(e, o);
  },
  selectSection: function (e) {
    var o = this;
    t.default.selectSection(e, o);
  },
  selectHosptalAll: function (e) {
    var o = this;
    t.default.selectHosptalAll(e, o);
  },
  selectHosptal: function (e) {
    var o = this;
    t.default.selectHosptal(e, o);
  },
  changeInput: function (e) {
    var o = this,
      n = e.detail.value;
    console.log(n), this.setData({
      currentResult: 1,
      doctors: [],
      moreBoo: !0
    }), this.setData({
      keyWord: n
    }), t.default.searchSome(o);
  },
  getMore: function () {
    var e = this;
    e.data.loadingBoo && !e.data.moreBoo || e.data.loadingBoo && (this.setData({
      loadingBoo: !1
    }), t.default.searchSome(e));
  },
  onLoad: function (options) {
    var that = this;
    var arr = options.arr
    console.log(arr)
    that.setData({
      arr: arr
    })
    this.getAllzhuanjia()

  },
  onReady: function () { },
  onShow: function () { },
  onHide: function () { },
  onUnload: function () { },
  onPullDownRefresh: function () { },
  onReachBottom: function () { },
  onShareAppMessage: function () { },
  getAllzhuanjia: function () {
    var that = this
    app.util.request({
      'url': 'entry/wxapp/zhuanjia.alldoc',
      success: function (res) {
        console.log(res)
        var info = res.data
        that.setData({
          zhuanjia: info
        })
      },
      fail: function (err) {
        console.log(err)
      },
    })
  },
});